import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ECharts from 'vue-echarts'
// 引入echarts
import eCharts from 'echarts'
import 'echarts-gl';
Vue.prototype.$eCharts = eCharts
import Print from './util/print'
import currencyInput from './components/common/Currency-input'
import VueI18n from 'vue-i18n'
import zh from './assets/languages/zh'
import en from './assets/languages/us'
import indo from './assets/languages/indo'

import Vue2OrgTree from 'vue2-org-tree';


Vue.use(Vue2OrgTree);
Vue.use(VueI18n);
Vue.use(Print);
Vue.component('v-chart', ECharts);
Vue.config.productionTip = false;


Vue.component('el-currency-input', currencyInput);
const i18n = new VueI18n({
    locale: localStorage.getItem('language')||'zh',
    messages: {
        'zh': zh,
        'en': en,
        'indo':indo
    }
});
export default new Vue({
    router,
    store,
    i18n,
    render: h => h(App)
}).$mount('#app')


